import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "api/merchant/getList",
    method: "GET",
    params,
  });
}
// 获取所有的商户
export function getAllList() {
  return request({
    url: "api/merchant/getAllList",
    method: "GET",
  });
}
export function getAllGroup() {
  return request({
    url: "api/merchant/getAllGroup",
    method: "GET",
  });
}
export function add(data) {
  return request({
    url: "api/merchant/add",
    method: "POST",
    data,
  });
}
export function addMoney(data) {
  return request({
    url: "api/merchant/addMoney",
    method: "POST",
    data,
  });
}
export function resertPwd(id) {
  return request({
    url: "api/merchant/resertPwd",
    method: "POST",
    data: { id },
  });
}

export function change(data) {
  return request({
    url: "api/merchant/change",
    method: "POST",
    data,
  });
}
export function del(id) {
  return request({
    url: "api/merchant/del",
    method: "POST",
    data: { id },
  });
}
export function change_credit(data) {
  return request({
    url: "api/merchant/changeCredit",
    method: "POST",
    data,
  });
}
export function inManage(id) {
  return request({
    url: "api/merchant/inManage",
    method: "POST",
    data: { id },
  });
}
export function setSharePoster(data) {
  return request({
    url: "api/merchant/setSharePoster",
    method: "POST",
    data,
  });
}
export function setPay(data) {
  return request({
    url: "api/merchant/setPay",
    method: "POST",
    data,
  });
}
export function setMain(data) {
  return request({
    url: "api/merchant/setMain",
    method: "POST",
    data,
  });
}

